#!/bin/bash
# 递归遍历文件夹
function read_dir(){
    for file in $(ls $1)
    do
        if [ -d $1'/'$file ]
        then
            read_dir $1'/'$file
        else
            echo $1
        fi
    done
}

read_dir $1